# -*- coding: utf-8 -*-
"""
__author__ = 'bingo'
__date__ = '2019/3/15'
# code is far away from bugs with the god animal protecting
    I love animals. They taste delicious.
              ┏┓      ┏┓
            ┏┛┻━━━┛┻┓
            ┃      ☃      ┃
            ┃  ┳┛  ┗┳  ┃
            ┃      ┻      ┃
            ┗━┓      ┏━┛
                ┃      ┗━━━┓
                ┃  神兽保佑    ┣┓
                ┃　永无BUG！   ┏┛
                ┗┓┓┏━┳┓┏┛
                  ┃┫┫  ┃┫┫
                  ┗┻┛  ┗┻┛
"""

from rest_framework import serializers

from user.models import User


class UserSerializer(serializers.ModelSerializer):
    """
    序列化器
    """

    class Meta:

        model = User
        fields = ['id', 'username', 'mobile', 'email']
